import { createRouter, createWebHistory } from 'vue-router'
import Home from '../pages/Home/Home.vue'
import Login from '../pages/Login/Login.vue'
import Register from '../pages/Register/Register.vue'
import CharacterCreate from '../pages/CharacterCreate/CharacterCreate.vue'
import Chat from '../pages/Chat/Chat.vue'
import Diary from '../pages/Diary/Diary.vue'
import VirtualWorld from '../pages/VirtualWorld/VirtualWorld.vue'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/character-create',
    component: CharacterCreate
  },
  {
    path: '/chat',
    component: Chat
  },
  {
    path: '/diary',
    component: Diary
  },
  {
    path: '/world',
    component: VirtualWorld
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router